//package com.controller;
//
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//@RequestMapping("/book")
//public class BookController {
////port 不能表示出来
////    @Value("${server.port}")
////    private String port;
//    @Value("${lesson}")
//    private String lesson;
//    @Value("${enterprise.name}")
//    private String name;
//    @Value("${enterprise.age}")
//    private int age;
//    @Value("${enterprise.tel}")
//    private String tel;
//    @Value("${enterprise.subject[0]}")
//    private String subject;
//
//
//    @GetMapping("/{id}")
//    public String getById(@PathVariable int id){
////        System.out.println(port);
//        System.out.println(lesson);
//        System.out.println(name);
//        System.out.println(age);
//        System.out.println(tel);
//        System.out.println(subject);
//        System.out.println("id==>"+id);
//        return "hello spring boot";
//    }
//
//
//
//}
